import { Component, OnInit } from '@angular/core';
import * as _ from 'lodash';
import { DataService } from './feature.dataservice';

@Component({
  selector: 'app-feature',
  templateUrl: './features.component.html',
  styleUrls: ['./features.component.less'],
})
export class FeaturesComponent implements OnInit {
  currentFeature = '';
  currentFeatureId = 0;

  constructor(private store: DataService) {}

  ngOnInit() {
    this.store.currentFeature.subscribe((data) => {
      this.currentFeature = data.feature;
      this.currentFeatureId = data.id;
    });
  }
}
